<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/upload.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/flutteredit.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>辅助插件 > <a href="./">漂浮窗口管理</a> > ${(flutter.id == 0)?string("新建","修改")}漂浮窗口</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
		            <tr>
						<td>图片：</td>
						<td>
		                    <input type="text" name="image" id="image" value="${flutter.image!}" style="width:300px;" />
		                    <span style="color:red">*</span>
						    <a class="linkbtn upload">本地上传</a>
							<input type="file" id="imagefile" name="srcfile" class="uploadfile" onchange="upload()" accept="image/*" />
							<img id="image_pre" height="25" src="${flutter.image!}" class="uploaditem" style="display:${(!flutter.image??)?string('none','inline')}" />
		                    <span id="uploading" class="uploaditem" style="display:none;">正在上传中...</span>
		                    
						</td>
					</tr>
	    			<tr>
						<td>起始坐标：</td>
						<td>
							<input type="text" name="start_x" id="start_x" value="${flutter.startX}" size="1" /> ×
							<input type="text" name="start_y" id="start_y" value="${flutter.startY}" size="1" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>起始方向：</td>
						<td>
							<#list flutterdirections as flutterdirection>
								<label><input type="radio" name="flutterdirectionid" value="${flutterdirection.id}" <#if !flutter.flutterDirection?? || flutterdirection.id == flutter.flutterDirection.id> checked</#if> />${flutterdirection.name}</label>
							</#list>
						</td>
					</tr>
					<tr>
						<td>URL地址：</td>
						<td>
							<input type="text" name="url" id="url" value="${flutter.url!}" style="width:600px" /> <span style="color:red">*</span>
						</td>
					</tr>
				</table>
				<input type="hidden" name="flutterid" value="${flutter.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div>
	</form>
</body>
</html>